<%@ page language="java" pageEncoding="utf-8" %>
<%@ include file="../../common/head_admin.jsp"%>
<%@ include file="../../common/dtree.jsp"%>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="../css/admin.css" />

<div id="admin_left">
	<ul class="submenu">
	<div class="dtree" align="left">
	<p align="left">
	<a href="javascript: d.openAll();" style="color:#c30">展开</a> |
	<a href="javascript: d.closeAll();" style="color:#c30">关闭</a>

<script type="text/javascript"> 		
		d = new dTree('d');
		d.icon = {
		root				: '${ctx}/manage/images/tree/folder_closed.gif',
		folder			: '${ctx}/manage/images/tree/folder_closed.gif',
		folderOpen	: '${ctx}/manage/images/tree/folder_open.gif',
		node				: '${ctx}/manage/images/tree/tree_node.gif',
		empty				: '${ctx}/common/images/dtree/empty.gif',
		line				: '${ctx}/common/images/dtree/line.gif',
		join				: '${ctx}/common/images/dtree/join.gif',
		joinBottom	: '${ctx}/common/images/dtree/joinbottom.gif',
		plus				: '${ctx}/common/images/dtree/plus.gif',
		plusBottom	: '${ctx}/common/images/dtree/plusbottom.gif',
		minus				: '${ctx}/common/images/dtree/minus.gif',
		minusBottom	: '${ctx}/common/images/dtree/minusbottom.gif',
		nlPlus			: '${ctx}/common/images/dtree/nolines_plus.gif',
		nlMinus			: '${ctx}/common/images/dtree/nolines_minus.gif'
	};
		d.add(0,-1,"权限分配");
		<c:forEach items="${userMenuMap}" var="entity" varStatus="s"> 
		    var url=null;
		   
		   <c:if test="${entity.value.function_url!='' }">
		     url="${ctx}/${entity.value.function_url}";
		   </c:if>
			d.add(${entity.value.function_id },${entity.value.parentId },"${entity.value.function_name }",url,"${entity.value.function_name }","mainFrame");			
		</c:forEach>	 
		document.write(d);
	</script>
</p>
</div>
</ul>
</div>
		